package tt.dz.egobus.servicemanager.facade.user;

import com.alibaba.dubbo.config.annotation.Reference;
import tt.dz.egobus.api.ResponseBack;
import tt.dz.egobus.api.usercenter.admin.AdminApiService;
import tt.dz.egobus.api.usercenter.admin.AdminBack;
import tt.dz.egobus.servicemanager.facade.interator.Facade;

/**
 * @author Anson
 * @date 17-3-30
 * @name
 * @since 1.0.3
 */
@Facade(facadeName = "admin")
public class AdminApiServiceFacade {

    @Reference(version = "1.0.3", timeout = 10000)
    private AdminApiService adminApiService;

    public ResponseBack<AdminBack> loginManager(String username, String password, String ip) {
        return adminApiService.loginManager(username, password, ip);
    }

    public ResponseBack<AdminBack> modificationAdmin(String adminId, String password, String passwordOld) {
        return adminApiService.modificationAdminPassword(adminId, passwordOld, password);
    }
}
